<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/12/14
 * Time: 16:01
 * 添加抄送查看记录
 */
$ocpr_uid      = $route->bodyParams['ocpr_uid'];          //用户ID
$ocpr_type     = $route->bodyParams['ocpr_type'];        //抄送申请类型 0-考勤申请 1-财务申请
$ocpr_fid      = $route->bodyParams['ocpr_fid'];         //申请主键ID




//写入数组
$insertArr = [
    'ocpr_uid'      => $ocpr_uid,
    'ocpr_type'     => $ocpr_type,
    'ocpr_fid'      => $ocpr_fid,
];
//执行写入语句
$rsData = $db->mysqlDB->insert("oa_copy_preview_record",$insertArr);

//返回成功结果
$response->responseData( true, $rsData );